<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>php新闻管理系统--用户注册</title>
<link href="style/styledform.css" rel="stylesheet" type="text/css">
</head>
<body>
<form name="form1" action="doReg.php" method="post" enctype="multipart/form-data">
    <div class="tableRow">
      <p></p>
      <p class="heading">用户注册</p>
    </div>      
    <div class="tableRow">
		<p>用户名:</p>
		<p><input type="text" name="uname" size="30" required/></p>
	</div>	
    <div class="tableRow">
		<p>密码:</p>
		<p><input type="password" name="upass" size="30"/></p>
	</div>
    <div class="tableRow">
		<p>重复密码:</p>
		<p><input type="password" name="upass1" size="30"/></p>
	</div>
    <div class="tableRow">
		<p>电子邮件:</p>
		<p><input type="email" name="uemail" size="30"/></p>
	</div>
	<div class="tableRow">
		<p> 性别:</p>
		<p> <input type="radio" name="gender" value="1" checked="checked">男
            <input type="radio" name="gender" value="2">女</p>
	</div>    
	<div class="tableRow label">
		<p> 请选择头像: </p>
		<p> <?php
          for($i=1;$i<=20;$i++){
			  $headfile="head".$i.".jpg";
			echo "<img src='headimg/".$headfile."' width='50' height='50'/> <input type='radio' name='head' value='".$headfile."'/>";
			if($i % 5==0) echo "<br>";  
		  }		
		?> </p>
	</div>
    <div class="tableRow">
      <p> 自定义头像: </p>
	  <p> <input type="file" name="myhead"></p> 
    </div>   
	<div class="tableRow">
		<p><input type="hidden" name="power" value="1"></p>
		<p><input type="submit" value="注册"> </p>
	</div>
     </form>
</body>
</html>